package com.beiding.my.common.query;

public abstract class OuterExpression extends Expression {
    /***条件合并***/
    public InnerConnectorHasBody and(Expression... conditionExpressions) {
        InnerConnectorHasBody r = new InnerConnectorHasBody(this);
        r.setBody(conditionExpressions);
        r.setSymbol("and");
        return r;
    }

    public InnerConnectorHasBody or(Expression... conditionExpressions) {
        InnerConnectorHasBody r = new InnerConnectorHasBody(this);
        r.setBody(conditionExpressions);
        r.setSymbol("or");
        return r;
    }

    public InnerConnectorNoBody and() {
        InnerConnectorNoBody r = new InnerConnectorNoBody(this);
        r.setSymbol("and");
        return r;
    }

    public InnerConnectorNoBody or() {
        InnerConnectorNoBody r = new InnerConnectorNoBody(this);
        r.setSymbol("or");
        return r;
    }

}
